package com.oa.domain;

import java.util.Date;

/**
 * MessageId entity. @author MyEclipse Persistence Tools
 */

public class MessageId implements java.io.Serializable {

	// Fields

	private Long mid;
	private String mcontent;
	private Long getempno;
	private Date mtime;
	private String mdesc;

	// Constructors

	/** default constructor */
	public MessageId() {
	}

	/** full constructor */
	public MessageId(Long mid, String mcontent, Long getempno, Date mtime,
			String mdesc) {
		this.mid = mid;
		this.mcontent = mcontent;
		this.getempno = getempno;
		this.mtime = mtime;
		this.mdesc = mdesc;
	}

	// Property accessors

	public Long getMid() {
		return this.mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public String getMcontent() {
		return this.mcontent;
	}

	public void setMcontent(String mcontent) {
		this.mcontent = mcontent;
	}

	public Long getGetempno() {
		return this.getempno;
	}

	public void setGetempno(Long getempno) {
		this.getempno = getempno;
	}

	public Date getMtime() {
		return this.mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getMdesc() {
		return this.mdesc;
	}

	public void setMdesc(String mdesc) {
		this.mdesc = mdesc;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof MessageId))
			return false;
		MessageId castOther = (MessageId) other;

		return ((this.getMid() == castOther.getMid()) || (this.getMid() != null
				&& castOther.getMid() != null && this.getMid().equals(
				castOther.getMid())))
				&& ((this.getMcontent() == castOther.getMcontent()) || (this
						.getMcontent() != null
						&& castOther.getMcontent() != null && this
						.getMcontent().equals(castOther.getMcontent())))
				&& ((this.getGetempno() == castOther.getGetempno()) || (this
						.getGetempno() != null
						&& castOther.getGetempno() != null && this
						.getGetempno().equals(castOther.getGetempno())))
				&& ((this.getMtime() == castOther.getMtime()) || (this
						.getMtime() != null && castOther.getMtime() != null && this
						.getMtime().equals(castOther.getMtime())))
				&& ((this.getMdesc() == castOther.getMdesc()) || (this
						.getMdesc() != null && castOther.getMdesc() != null && this
						.getMdesc().equals(castOther.getMdesc())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMid() == null ? 0 : this.getMid().hashCode());
		result = 37 * result
				+ (getMcontent() == null ? 0 : this.getMcontent().hashCode());
		result = 37 * result
				+ (getGetempno() == null ? 0 : this.getGetempno().hashCode());
		result = 37 * result
				+ (getMtime() == null ? 0 : this.getMtime().hashCode());
		result = 37 * result
				+ (getMdesc() == null ? 0 : this.getMdesc().hashCode());
		return result;
	}

}